﻿ <div class="sitelogo">
                    <h1><a href="/">
                        <img src="~/Content/skin1/images/sitelogo.gif" alt="呷饭网" title="呷饭网" /></a></h1>
                </div>
                <div class="cityset">
                    <h2 id="city">深圳</h2>
                    <p><a href="@Url.Action("citychange","Home",new{area=""})">[切换城市] </a></p>
                </div>
                <div class="hotelsch">

                    @{
                        var controller = ViewContext.RouteData.Values["controller"].ToString();
                        var action = ViewContext.RouteData.Values["action"].ToString();

                        if (action != "List" && controller != "Store")
                        {
                            using (Html.BeginForm("List", "Store", new RouteValueDictionary { { "page", "" }},FormMethod.Get))
                            {
                                    @Html.Hidden("city");
                                    @Html.Hidden("region");
                                    @Html.Hidden("category", null, new { value = @ViewBag.category });
                                    @Html.Hidden("sort", 0, new { value = @ViewBag.sort });  
                                    @Html.Hidden("limit", 10);
                                    <p>
                                        <input type="text" name="keyword" value="@ViewBag.keyword"  class="text" />  
                                        <input type="submit" name="schbtn" id="schbtn" value="搜索" class="btn" ccesskey="S" />
                                    </p>
                            }
                        }
                        else
                        {
                            using (Ajax.BeginForm("List", "Store", new RouteValueDictionary { { "page", "" } }, new AjaxOptions {  OnSuccess = "OnSuccess" ,HttpMethod = "Post"}))
                            {
                                @Html.Hidden("city");
                                @Html.Hidden("region");
                                @Html.Hidden("category", null, new { value = @ViewBag.category });
                                @Html.Hidden("sort", 0, new { value = @ViewBag.sort });  
                                @Html.Hidden("limit", 10);
                                <p>
                                    <input type="text" name="keyword" value="@ViewBag.keyword"  class="text" />
                                    <input type="submit" name="schbtn" id="schbtn" value="搜索" class="btn" ccesskey="S" />
                                </p>
                            }
                        }
                    }


                </div>

<div class="myorder">
    <p><a href="@{ var hotel =RBS.Common.ConfigHelper.GetConfigString("hotelWeb");@hotel }">酒店入驻</a> | <a href="@Url.Action("OrderList", "Order", new { Area = "User" })">我的饭局</a> | <a href="@Url.Action("Apk", "Home")">手机客户端</a></p>
</div>

@{
           
    if (Request.IsAuthenticated)
    {
        var user = new RBS.Core.BLL.U_User().GetModelByCache(Convert.ToInt32(Context.User.Identity.Name));
        if (user != null)
        {
             <div class="userlgned">
                <p><strong>你好，@user.U_Uid</strong></p>
                <u class="top-arrow"></u>
                <ul>
                    <li class="s1">@Html.ActionLink("个人资料", "Index", "Profile", new { area = "User" }, null)</li>
                    <li class="s2">@Html.ActionLink("收藏夹", "CollectHotelList", "Collect", new { area = "User" }, null) </li>
                    <li class="s3">@Html.ActionLink("代金券", "ConsumptionPaymentList", "Coupons", new { area = "Deed" }, null) </li>
                    <li class="s4">@Html.ActionLink("注销", "LogOut", "Login", new { area = "" }, null)</li>
                </ul>
            </div> 
        } 
         else
        {
        <div class="userlgn">
            <ul>
                <li class="l">@Html.ActionLink("登录", "Index", "Login", new { area = "" }, null)</li>
                <li class="r">@Html.ActionLink("注册", "Register", "Login", new { area = "" }, null)</li>
            </ul>
        </div>

        } 
    }
    else
    {
    <div class="userlgn">
        <ul>
            <li class="l">@Html.ActionLink("登录", "Index", "Login", new { area = "" }, null)</li>
            <li class="r">@Html.ActionLink("注册", "Register", "Login", new { area = "" }, null)</li>
        </ul>
    </div>

    } 
}




